package com.kgc.scd.service;

import com.kgc.scd.bean.Seckill;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @program: com.kgc.scd.service
 * @author: HarryXzy
 * @create: 2022-06-15 14:10
 * @description:
 **/
@FeignClient(value = "blmall-server-xzy-8101")
public interface SecKillService {

    @GetMapping("/getAllSecKill")
    Map<String, Object> getAllSecKill();

    @GetMapping("/needNotifySecKill")
    Map<String, Object> needNotifySecKill(@RequestParam("userId") String userId,@RequestParam("secKillid") String secKillid);

    @PostMapping("/addSecKill")
    Map<String, Object> addSecKill(@RequestBody Seckill seckill);
}
